<?php
$dao = new DaoProduct();
$products = $dao->getList(" sortID<>0 and isIndex='1' order by sortID asc",6);
?>

<div id="gap"></div>
  <div class="title"> 
		<img src="<?php echo public_path('images/HotWorks.jpg');?>" />
      <a  href="<?php echo url('product/hot?op=hot')?>" class="addfontlink">+MORE</a>
	</div>
  <div id="line"></div>
  <div id="gap"></div>
  <div class="w990">
	<?php foreach($products as $p):
		$user = service_user::getByID($p['userID']);
		$img = service_image::getItemPic(service_type::PRODUCT,$p['id']);
		$url = service_uri::getProductUri($p['id']);
	?>
		<ul class="post small-post">
			<div class="cover" cover-text="<?php echo $user['name'];?>"> 
				<a href="<?php echo $url;?>" title="<?php echo $user['name'];?>" hidefocus="true" target="_blank">
					<img class="hotPP" src="<?php echo service_image::getThumb($img['src']);?>" alt="<?php echo $user['name'];?>" />
				</a> 
			</div>
			<li>
				<label>发布人/</label>
				<a href="#" title="<?php echo $user['name'];?>" hidefocus="true" class="nickname" target="_blank" >刘伟</a>
				<span class="approve" title="认证会员"></span>
			</li>
			<li>
				<label>职业/</label>
				<span><?php echo $user['job']?></span>
			</li>
			<li>
				<label>点击量/</label>
				<span>38789</span>
			</li>
		</ul>
	<?php endforeach;?>
  </div>
<script type="text/javascript">
$(document).ready(function(){
	$(".hotPP").LoadImage(true,160,160);
});
</script>
